﻿<%@ Page Title="List Category Of Buy Offers" Language="C#" MasterPageFile="~/GuestView.master" AutoEventWireup="true" CodeBehind="bListCategory.aspx.cs" Inherits="BestBuy.PageGuest.bListCategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
        function Explain(controlClick, item) {
            var t = document.getElementById(item.toString());
            if (t != null) {
                if (t.className == "gridviewHide") {
                    t.className = "gridviewShow";
                    controlClick.innerHTML = 'Less...';
                } else {
                    t.className = "gridviewHide";
                    controlClick.innerHTML = 'More...';
                }
            }
        } 
    </script>  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="padding:20px 0px 0px 80px;">
        <a href="../Default.aspx"> Home </a> > Buy Offers
    </div>
    <div class="row ListCategory_content">
        <div class="span10" style="padding:10px 10px 10px 20px;">
            <div >
                <asp:GridView ID="gvCategories" runat="server" AutoGenerateColumns="False" Width="100%"
                    ShowHeader="False" GridLines="None" OnRowDataBound="gvCategories_OnRowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink ID="hlCategory1" runat="server" CssClass="ListCategory_level1"></asp:HyperLink>
                                <asp:Label ID="lbQuantity1" runat="server"></asp:Label>
                                <asp:GridView ID="gvItem1" runat="server" 
                                    ShowHeader="false" ShowFooter="false" GridLines="None" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <a href='bListProductOfCategory.aspx?pid=<%#Eval("IDDanhMuc")%>'><%#Eval("TenDanhMuc") %></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ListCategory_item" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:GridView ID="gvItem1More" runat="server" CssClass="gridviewHide"
                                    ShowHeader="false" ShowFooter="false" GridLines="None" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <a  href='bListProductOfCategory.aspx?pid=<%#Eval("IDDanhMuc")%>'><%#Eval("TenDanhMuc") %></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ListCategory_item" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:Panel ID="pnMoreLess1" runat="server" Visible="false">
                                    <a onclick="Explain(this,'<%#((GridViewRow)Container).FindControl("gvItem1More").ClientID%>');"
                                    class="MoreLess_link">More...</a>
                                </asp:Panel>
                            </ItemTemplate>
                            <ItemStyle CssClass="ListCategory_Header" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink ID="hlCategory2" runat="server" CssClass="ListCategory_level1"></asp:HyperLink>
                                <asp:Label ID="lbQuantity2" runat="server"></asp:Label>
                                <asp:GridView ID="gvItem2" runat="server"
                                    ShowHeader="false" GridLines="None" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <a  href='bListProductOfCategory.aspx?pid=<%#Eval("IDDanhMuc")%>'><%#Eval("TenDanhMuc") %></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ListCategory_item" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:GridView ID="gvItem2More" runat="server" CssClass="gridviewHide"
                                    ShowHeader="false" ShowFooter="false" GridLines="None" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <a  href='bListProductOfCategory.aspx?pid=<%#Eval("IDDanhMuc")%>'><%#Eval("TenDanhMuc") %></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ListCategory_item" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:Panel ID="pnMoreLess2" runat="server" Visible="false">
                                    <a onclick="Explain(this,'<%#((GridViewRow)Container).FindControl("gvItem2More").ClientID%>');"
                                    class="MoreLess_link">More...</a>
                                </asp:Panel>
                            </ItemTemplate>
                            <ItemStyle CssClass="ListCategory_Header" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink ID="hlCategory3" runat="server" CssClass="ListCategory_level1"></asp:HyperLink>
                                <asp:Label ID="lbQuantity3" runat="server"></asp:Label>
                                <asp:GridView ID="gvItem3" runat="server"
                                    ShowHeader="false" GridLines="None" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <a  href='bListProductOfCategory.aspx?pid=<%#Eval("IDDanhMuc")%>'><%#Eval("TenDanhMuc") %></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ListCategory_item" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:GridView ID="gvItem3More" runat="server" CssClass="gridviewHide"
                                    ShowHeader="false" ShowFooter="false" GridLines="None" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <a  href='bListProductOfCategory.aspx?pid=<%#Eval("IDDanhMuc")%>'><%#Eval("TenDanhMuc") %></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ListCategory_item" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:Panel ID="pnMoreLess3" runat="server" Visible="false">
                                    <a onclick="Explain(this,'<%#((GridViewRow)Container).FindControl("gvItem3More").ClientID%>');"
                                    class="MoreLess_link">More...</a>
                                </asp:Panel>
                            </ItemTemplate>
                            <ItemStyle CssClass="ListCategory_Header" />
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle HorizontalAlign="Left" VerticalAlign="Top" />
                </asp:GridView>
            </div>
        </div>
            <div class="span3 quangcao-border">
                <ul class="nav nav-list bs-docs-sidenav" id="ulParent">
                    <li class="active" style="text-align: center; margin-left:4px;"><a>Advertising</a></li>
                </ul>
                <img src="../Images/QuangCao/quangcao1.jpg" />
                <img src="../Images/QuangCao/quangcao4.jpg" />
                <img src="../Images/QuangCao/quangcao2.jpg" />
                <img src="../Images/QuangCao/quangcao3.jpg" />
                <img src="../Images/QuangCao/quangcao5.jpg" />
            </div>
    </div>
</asp:Content>
